package com.example.demo.mapper;

import com.example.demo.entity.po.OrdersEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.BaseMapper;

/**
 *  
 * @author generate     
 * @version 1.0.0 2018-05-14 19:19:47
 */
@Mapper
public interface OrdersMapper extends BaseMapper<OrdersEntity> {
    @Select("select * from orders where name like concat(concat('%',#{name}),'%')")
    OrdersEntity selectByUserName(String name);
}

